package com.data.modules.log.common;

import java.io.Serializable;

/**
 * 默认配置常量信息
 *
 * @author zhangzhiwei
 */
public class Const implements Serializable {

    /**
     * 项目版本
     */
    public static final String PROJECT_VERSION = "11.3.1";

    /**
     * 默认分隔符
     */
    public static final String SEPARATOR = ",";

    /**
     * 查询数据权限递归次数,可以通过继承这个类修改
     */
    public static final int AUTH_DATA_RECURSION_NUM = 10;

    public static final int RECURSION_NUM = 8;
    /**
     * 业务token在header中的名称
     */
    public static final String TOKEN_NAME = "Admin-Token";
    public static final String USER_PHONE = "User-Phone";
    //支持研发人员自测 通过header 获取指定的userId 信息
    public static final String USERID = "userid";
    //请求来源 H5 WX IOS ANDROID
    public static final String REQ_SOURCE = "Req-Source";
    public static final String SERVER_IP = "ServerIp";
    public static final String PROXY_HOST = "proxyHost";


    /**
     * 默认编码
     */
    public static final String DEFAULT_CONTENT_TYPE = "application/json;charset=UTF-8";

    /**
     * sql最大查询条数限制,以及字段数量限制
     */
    public static final Integer QUERY_MAX_SIZE = 100;

    /**
     * PC端登录的userKey
     */
    public static final String USER_TOKEN = "WK:USER:TOKEN:";

    /**
     * 用户token的最长过期时间
     */
    public static final Integer MAX_USER_EXIST_TIME = 3600 * 24 * 7;

    /**
     * 批量保存的条数
     */
    public static final int BATCH_SAVE_SIZE = 200;

    /**
     * 企业信息缓存KEY
     */
    public static final String COMPANY_MANAGE_CACHE_NAME = "COMPANY:MANAGE:STATUS:";

    /**
     * 用户名称缓存key
     */
    public static final String ADMIN_USER_NAME_CACHE_NAME = "ADMIN:USER:CACHE:";

    /**
     * 部门名称缓存key
     */
    public static final String ADMIN_DEPT_NAME_CACHE_NAME = "ADMIN:DEPT:CACHE:";
    /**
     * 同步锁缓存key
     */
    public static final String LOCK_CACHE = "LOCK:CACHE:";

    /**
     * 默认的企业人数
     */
    public static final Integer DEFAULT_COMPANY_NUMBER = 2;


    /**
     * 汇流微信公众号  劳动者消息变化触发跳转wx url
     */

    //public static final String HUILIU_WX_CUSTOMER_URL = "/hlCustomer/#/resumeDetail?customerId=";
    public static final String HUILIU_WX_CUSTOMER_URL = "pages/index/index?channel=bpWebview&customerId=";


}
